""" Builds tinyxml.
"""

load("@rules_cc//cc:defs.bzl", "cc_library")

cc_library(
    name = "tinyxml",
    srcs = [
        "tinyxml/tinystr.cpp",
        "tinyxml/tinyxml.cpp",
        "tinyxml/tinyxmlerror.cpp",
        "tinyxml/tinyxmlparser.cpp",
    ],
    hdrs = [
        "tinyxml/tinystr.h",
        "tinyxml/tinyxml.h",
    ],
    defines = ["TIXML_USE_STL"],
    includes = [
        ".",
        "tinyxml",
    ],
    visibility = ["//visibility:public"],
)
